<script setup>

defineProps({
  label: {
    type: String,
    default: "label"
  }
})

const mod = defineModel()

const handleChange = () => {
  mod.value = !mod.value
}
console.log(mod.value)
</script>

<template>
  <view>
    <checkbox @click="handleChange" :checked="mod" />
    <v-label>{{label}}</v-label>
  </view>
</template>

<style scoped lang="scss">

</style>